package com.groupbuying.storeinternal.dto.forManage;

import java.io.Serializable;
import java.util.List;

public class AccountDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    //商户id
    private String accountId;
    //操作人
    private String oper;
    //操作时间
    private String operTime;
    //删除标志
    private String delFlag;
    //创建人
    private String createOper;
    //创建时间
    private String createOpeTime;
    //商户账号
    private String accountName;
    //雇员名称
    private String name;
    //密码
    private String password;
    //邮箱
    private String email;
    //手机号
    private String mobile;
    //状态 0:禁用，1:正常
    private String status;
    //性别
    private Long sex;
    //省份
    private String province;
    //所在城市
    private String city;
    //所在地区
    private String district;
    //服务商id
    private String providerId;
    //角色
    private List<String> roleIds;
    //服务商名字
    private String providerName;

    //角色名字
    private String roleName;
    //代理商Id
    private String agentId;

    private String agentName;

    private String id;

    private String freezeStatus;

    public String getFreezeStatus() {
        return freezeStatus;
    }

    public void setFreezeStatus(String freezeStatus) {
        this.freezeStatus = freezeStatus;
    }

    public String getAgentName() {
        return agentName;
    }

    public void setAgentName(String agentName) {
        this.agentName = agentName;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAccountId() {
        return accountId;
    }

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }

    public String getOper() {
        return oper;
    }

    public void setOper(String oper) {
        this.oper = oper;
    }

    public String getOperTime() {
        return operTime;
    }

    public void setOperTime(String operTime) {
        this.operTime = operTime;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getCreateOper() {
        return createOper;
    }

    public void setCreateOper(String createOper) {
        this.createOper = createOper;
    }

    public String getCreateOpeTime() {
        return createOpeTime;
    }

    public void setCreateOpeTime(String createOpeTime) {
        this.createOpeTime = createOpeTime;
    }

    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Long getSex() {
        return sex;
    }

    public void setSex(Long sex) {
        this.sex = sex;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getProviderId() {
        return providerId;
    }

    public void setProviderId(String providerId) {
        this.providerId = providerId;
    }

    public List<String> getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(List<String> roleIds) {
        this.roleIds = roleIds;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setProviderName(String providerName) {
        this.providerName = providerName;
    }

    public String getProviderName() {
        return providerName;
    }

    public void setRoleName(String roleName){
        this.roleName = roleName;
    }

    public String getRoleName(){
        return roleName;
    }

    public String getAgentId() {
        return agentId;
    }

    public void setAgentId(String agentId) {
        this.agentId = agentId;
    }

    @Override
    public String toString() {
        return "AccountDTO{" +
                "accountId='" + accountId + '\'' +
                ", oper='" + oper + '\'' +
                ", operTime='" + operTime + '\'' +
                ", delFlag='" + delFlag + '\'' +
                ", createOper='" + createOper + '\'' +
                ", createOpeTime='" + createOpeTime + '\'' +
                ", accountName='" + accountName + '\'' +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", email='" + email + '\'' +
                ", mobile='" + mobile + '\'' +
                ", status='" + status + '\'' +
                ", sex=" + sex +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", district='" + district + '\'' +
                ", providerId='" + providerId + '\'' +
                ", roleIds=" + roleIds +
                ", providerName='" + providerName + '\'' +
                ", roleName='" + roleName + '\'' +
                ", agentId='" + agentId + '\'' +
                ", agentName='" + agentName + '\'' +
                ", id='" + id + '\'' +
                ", freezeStatus='" + freezeStatus + '\'' +
                '}';
    }

    public String formatFreezeStatus(String freezeStatus){
        if(freezeStatus.equals("0")){
            freezeStatus="未冻结";
        }else{
            freezeStatus="已冻结";
        }
        return freezeStatus;
    }
}
